<template>
  <div>
		<Header/>
		<!-- 导航区域 -->
		<div class="col-xs-2 col-xs-offset-2">
			<!-- 在Vue中 我们使用 router-link组件，实现路径的切换，进而实现组件的切换-->
			<router-link active-class="active" class="list-group-item" :to="{path:'/about'}">About</router-link>
			<router-link active-class="active" class="list-group-item" to="/home">Home</router-link>
		</div>
		<!-- 展示区 -->
		<div class="col-xs-6 panel panel-body panel-primary">
			<!-- 使用router-view占位，匹配上的组件就呈现在router-view这里-->
			<router-view></router-view>
		</div>
	</div>
</template>

<script>
	import Header from './components/Header'
  export default {
    name:'App',
		components:{Header},
  }
</script>
